<#if dirName?trim?length gt 1>
	package ${packageName}.module.${dirName}
<#else>
	package ${packageName}.module
</#if>

import android.app.Activity
import android.content.Context
import android.content.Intent

import ${packageName}.R
import cn.ubest.mvvmcore.base.BaseActivity
import ${packageName}.databinding.Activity${className}Binding
import ${packageName}.vm.${className}VM

class ${className}Activity : BaseActivity<${className}VM,Activity${className}Binding>(){

	companion object {
        fun start(context: Context?) {
			context?.also{
				val starter = Intent(it, ${className}Activity::class.java)
				if (it !is Activity) {
					starter.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
				}
				it.startActivity(starter)
			}
           
        }
    }
	
    override fun initLayout():Int {
	<#if generateLayout>
		return R.layout.activity_${className?replace('([a-z])([A-Z]+)','$1_$2','r')?lower_case};
		<#else>
		return 0;
	</#if>
        
    }
	
	override fun initData(intent: Intent) {
        
    }

    override fun initView() {

    }
	
	override fun loadData() {
        
    }
}
